package com.glacier.cloud.gateway.config;

import com.glacier.cloud.gateway.filter.LogFilter;
import com.glacier.cloud.gateway.filter.factory.GlacierGatewayFilterFactory;
import com.glacier.cloud.gateway.predicate.GlacierRoutePredicateFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * date 2024-01-31 17:26
 *
 * @author glacier
 * @version 1.0
 */
@Configuration
public class AppConfig {

    @Bean
    GlacierRoutePredicateFactory glacierRoutePredicateFactory() {
        return new GlacierRoutePredicateFactory();
    }

    @Bean
    GlacierGatewayFilterFactory glacierGatewayFilterFactory() {
        return new GlacierGatewayFilterFactory();
    }

    @Bean
    LogFilter logFilter() {
        return new LogFilter();
    }
}
